import { IMajor, ICodingStudent } from "./env";

/* 
坑：不要将枚举定义在dts文件中
没有特别为什么，总之编译后无法正常运行
下次面试官问遇到过哪些坑时，这里无厘头坑点+1 
*/
enum MajorName {
   FRONTEND = "FRONTEND",
   JAVA = "JAVA",
   CLOUD = "CLOUD",
   TEST = "TEST",
}

const major: IMajor = {
   name: MajorName.FRONTEND,
   hours: 12345,
};

const stu: ICodingStudent = {
   name: "张三疯",
   major,
};

console.log(stu);
